package com.irdstudio.efp.console.service.dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.irdstudio.efp.console.service.domain.BizParamValue;
import com.irdstudio.efp.console.service.domain.SDicTree;
import com.irdstudio.efp.console.service.vo.BizParamValueVO;
import com.irdstudio.efp.console.service.vo.SDicTreeVO;
/**
 * <p>DAO interface:系统字典树表				<p>
 * @author fuzm
 * @date 2018-05-15
 */
public interface SDicTreeDao {
	
	public int insertSDicTree(SDicTree sDicTree);
	
	public int deleteByPk(SDicTree sDicTree);
	
	public int updateByPk(SDicTree sDicTree);
	
	public SDicTree queryByPk(SDicTree sDicTree);
	
	public List<SDicTree> queryAllOwnerByPage(SDicTreeVO sDicTree);
	
	public List<SDicTree> queryAllCurrOrgByPage(SDicTreeVO sDicTree);
	
	public List<SDicTree> queryAllCurrDownOrgByPage(SDicTreeVO sDicTree);
	
	public List<SDicTree> querySDicTreeByOpttype(SDicTreeVO sDicTreeVO);
	
	/**bizParamValueVO
	 * 查询禁入行业
	 * @param bizParamValueVO
	 * @return
	 */
	public List<BizParamValue> queryAllBizValueByPage(BizParamValueVO bizParamValueVO);
	/**
	 * 
	 * @param bizParamValueVO
	 * @return
	 */
	public List<BizParamValue> queryAllBizValue(BizParamValueVO bizParamValueVO);
	/**
	 * 根据双主键查询禁入行业条数
	 * @param bizParamValueVO
	 * @return
	 */
	public int queryByValueAndEnname(BizParamValue bizParamValue);
	
	/**
	 * 批量新增禁入行业
	 * @param bizParamValue
	 * @return
	 */
	public int insertMoreBizParamValue(@Param("bizParamValues") List<BizParamValue> bizParamValues);
	/**
	 * 根据双主键删除禁入行业配置
	 * @param bizParamValue
	 * @return
	 */
	public int deleteByValueAndEnname(BizParamValue bizParamValue);
	/**
	 * 批量删除
	 * @param bizParamValue
	 * @return
	 */
	public int deleteMoreBizParamValue(@Param("ennames") String ennames);
	/**
	 * 全表删除
	 * @param bizParamValue
	 * @return
	 */
	public int deleteAllBizParamValue(BizParamValue bizParamValue);
	/**
	 * 批量插入
	 * @param trees
	 * @return
	 */
	public int insertMoreSDicTree(@Param("trees")List<SDicTree> trees);
}
